<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'detail';
$return['plugin_icon']=$return['pluginset']['logo'];
if($_RQ['op']=='detail'){
	$item=$this->plugin_setting('baofile');
	$item['desc2'] = strip_tags(str_replace('&nbsp;','',$item['content']));
	$item['desc'] = cfc('tools')->substr($item['desc2'],0,$nums);
	$user=pdo_get('jy_baobiao_project_cuser',array('uniacid'=>$_SESSION['uniacid'],'mid'=>$_SESSION['uid']));
	$return['user']=$user;
	$item['file']=tomedia($item['file']);
    $return['item']=$item;
	$sharelink='jy_baobiao/baofile//fromuser='.$_SESSION['uid'].'&id='.$return['item']['id'];
	$return['sharedata']=array(
			'title'=>$return['item']['title'] . '-' . $return['pluginset']['title'],
			'desc'=>$return['item']['desc'],
			'link'=>custom_url($sharelink,true),
			'imgUrl'=>$return['item']['image']?tomedia($return['item']['image']):tomedia($return['pluginset']['logo']),
	);
	set_html('title',$return['item']['title']);
	exi($return);
}